﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using abp.Roles;
using Volo.Abp.Domain.Entities.Auditing;

namespace abp.Users
{
    public class LoginUser: AuditedAggregateRoot<Guid>
    {
        public LoginUser()
        {
        }

        [Required]
        [MaxLength(25)]
        public string UserName { get; set; }

        [MaxLength(50)]
        public string DisplayName
        {
            get
            {
                if (string.IsNullOrEmpty(DisplayName)) return UserName;
                return DisplayName;
            }
        }

        [Required]
        [MaxLength(50)]
        public string Password { get; set; }

        public bool IsEnable { get; set; }

        private  List<LoginRole> roles;
        
    }
}
